/*
 * Main.java
 *
 * Created on 28 de junio de 2007, 12:37
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package servidor;


import java.net.InetAddress;
import java.net.UnknownHostException;
import javax.xml.ws.Endpoint;
/**
 *
 * @author mfrias
 */
public class Main {
    
    /** Creates a new instance of Main */
    public Main() {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        Principal princ = new Principal();
        princ.setVisible(true);
                
    }
    
    public static String getIP(){
        InetAddress ia = null;
        try{
            ia = InetAddress.getLocalHost();
        }catch(UnknownHostException e){e.printStackTrace();}
        String chunk = ia.toString();
        String[] host  = new String[2];
        host = chunk.split("/");
        return host[1];
    }
    
}
